package com.wxyzz.satserver.article.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxyzz.common.core.entity.Article;
import com.wxyzz.common.core.entity.Comment;
import com.wxyzz.satserver.article.param.CommentAddParam;
import com.wxyzz.satserver.article.param.UpdateEnshrineNumParam;
import com.wxyzz.satserver.article.param.UpdateLikeNumParam;
import com.wxyzz.satserver.article.vo.CommentVO;

import java.util.List;

public interface ArticleDao extends BaseMapper<Article> {
    Integer insertCommentInfo(CommentAddParam param);

    List<CommentVO> selectCommentInfo(Integer aid);

    List<Comment> selectCommentById (Integer id);


    void updateLikeNumBatch(List<UpdateLikeNumParam> temp);

    void updateEnshrineNumBatch(List<UpdateEnshrineNumParam> temp);
}
